class AddLoaiIndexToTaiSan < ActiveRecord::Migration
  def change
    add_index :tai_sans, :LoaiTaiSan_id

    add_index :phongs, :LoaiPhong_id

    add_index :quan_lies, :NhanVien_id
    add_index :quan_lies, :Phong_id

    add_index :phieu_nhaps, :NhanVien_id
    add_index :phieu_nhaps, :TaiSan_id
    add_index :phieu_nhaps, :NhaCungCap_id

    add_index :phieu_xuats, :NhanVien_id
    add_index :phieu_xuats, :TaiSan_id

    add_index :nhat_kies, :PhongDen_id
    add_index :nhat_kies, :PhongDi_id
    add_index :nhat_kies, :TaiSan_id

    add_index :ct_phongs, :Phong_id
    add_index :ct_phongs, :TaiSan_id
    add_index :ct_phongs, :NhanVien_id

    #add_index :nhan_viens, :TaiKhoan, unique:true
    #add_index :nhan_viens, :remember_token
  end
end
